package com.wan.controller;

import com.wan.Feign.MyFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 万星明
 * @Date 2019/2/12
 */
@RestController
public class CustomerController {

    @Autowired
    private MyFeign myFeign;

    @RequestMapping("/customer")
    public String test(){
        String test = myFeign.test();
        return  "服务被Feign调用！返回值：" + test;
    }

}
